<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        function push(array, ...items) {
            array.push(...items);
        }
        console.log(push);

        function add(x, y) {
            return x + y;
        }
        add(1, 2)
        const numbers = [4, 38];
        add(...numbers) // 42
    </script>
</body>

</html>